#DEBUG = -DDEBUG -DDEBUGSCREEN
DEBUG = -DDEBUG

#CFLAGS = -Wall ${DEBUG} -DUSE_NETWORK
CFLAGS = -Wall ${DEBUG} 

CC = gcc ${CFLAGS}
CPP = g++ ${CFLAGS}

INCDIR  = -I../../../common
INCDIR += -I../../lib

GOTEMP_OBJS = gotemp_standalone.o

default: gotemp

all: gotemp

clean :
	rm -f *.o *.exe *.a *.stackdump gotemp

distclean: clean
	rm -f *.log command*.txt telemetry*.txt 
			
unused :
	rm -f *.o

gotemp: ${GOTEMP_OBJS}
	${CPP} -o gotemp ${GOTEMP_OBJS}

# object files from this directory

%.o : %.c 
	${CC} -c ${INCDIR} $<		
	

# object files from comon directory
	
%.o: ../../../common/%.c 
	${CC} -c ${INCDIR} $<


# object files from lib directory	

%.o : ../../lib/%.c 
	${CC} -c ${INCDIR} $<		


